package pe.com.bn.sach.domain;

/**
 * Bnchf53CalComprobDomicId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf53CalComprobDomicId implements java.io.Serializable {

	// Fields

	private Bnchf53Calificacion bnchf53Calificacion;
	private Long f53IdRecibo;

	// Constructors

	/** default constructor */
	public Bnchf53CalComprobDomicId() {
		bnchf53Calificacion = new Bnchf53Calificacion();
	}

	/** full constructor */
	public Bnchf53CalComprobDomicId(Bnchf53Calificacion bnchf53Calificacion,
			Long f53IdRecibo) {
		this.bnchf53Calificacion = bnchf53Calificacion;
		this.f53IdRecibo = f53IdRecibo;
	}

	// Property accessors

	public Bnchf53Calificacion getBnchf53Calificacion() {
		return this.bnchf53Calificacion;
	}

	public void setBnchf53Calificacion(Bnchf53Calificacion bnchf53Calificacion) {
		this.bnchf53Calificacion = bnchf53Calificacion;
	}

	public Long getF53IdRecibo() {
		return this.f53IdRecibo;
	}

	public void setF53IdRecibo(Long f53IdRecibo) {
		this.f53IdRecibo = f53IdRecibo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf53CalComprobDomicId))
			return false;
		Bnchf53CalComprobDomicId castOther = (Bnchf53CalComprobDomicId) other;

		return ((this.getBnchf53Calificacion() == castOther
				.getBnchf53Calificacion()) || (this.getBnchf53Calificacion() != null
				&& castOther.getBnchf53Calificacion() != null && this
				.getBnchf53Calificacion().equals(
						castOther.getBnchf53Calificacion())))
				&& ((this.getF53IdRecibo() == castOther.getF53IdRecibo()) || (this
						.getF53IdRecibo() != null
						&& castOther.getF53IdRecibo() != null && this
						.getF53IdRecibo().equals(castOther.getF53IdRecibo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf53Calificacion() == null ? 0 : this
						.getBnchf53Calificacion().hashCode());
		result = 37
				* result
				+ (getF53IdRecibo() == null ? 0 : this.getF53IdRecibo()
						.hashCode());
		return result;
	}

}